package com.yourPet.springMVCTest.beans;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Emp {
	
	private String name;
	
	private int phone;

	private Date hireDate;
	
	private String dept;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPhone() {
		return phone;
	}

	public void setPhone(int phone) {
		this.phone = phone;
	}
	
	public Date getHireDate() {
		return hireDate;
	}

	public void setHireDate(Date hireDate) {
		this.hireDate = hireDate;
	}

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public String toString(){
		return name + " " + phone + " " + new SimpleDateFormat("yyyy-MM-dd").format(hireDate) + " " + dept;
	}
}
